package com.sq.partner.manager.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.NocarEdrnoPowerDao;
import com.sq.partner.manager.mybatis.model.GatewayUser;
import com.sq.partner.manager.mybatis.model.NocarEdrnoPower;
import com.sq.partner.manager.service.NocarEdrnoPowerService;
import com.sq.partner.manager.util.Page;

/**
 * 
 * 
 * SQ
 *
 */
@Service
public class NocarEdrnoPowerServiceImpl implements NocarEdrnoPowerService {
	
	@Resource
	private NocarEdrnoPowerDao nocarEdrnoPowerDao;
	
	@Override
	public Page<Map<String,Object>> queryNocarEdrnoPowers(Page<Map<String,Object>> page)
			throws SQLException {
		return nocarEdrnoPowerDao.queryNocarEdrnoPowers(page);
	}

	@Override
	public boolean deletNocarEdrnoPower(String id) throws Exception {
		return nocarEdrnoPowerDao.deletNocarEdrnoPower(id);
	}
	@Override
	public Page<Map<String, Object>> queryPlanPageByCriteria(Page<Map<String, Object>> page,
			GatewayUser user) throws Exception {
		return nocarEdrnoPowerDao.queryPlanPageByCriteria(page, user);
	}

	@Override
	public boolean addNocarEdrnoPower(NocarEdrnoPower nocarEdrnoPower)
			throws Exception {
		return nocarEdrnoPowerDao.addNocarEdrnoPower(nocarEdrnoPower);
	}

	@Override
	public boolean updateNocarEdrnoPower(NocarEdrnoPower nocarEdrnoPower)
			throws Exception {
		return nocarEdrnoPowerDao.updateNocarEdrnoPower(nocarEdrnoPower);
	}

	@Override
	public NocarEdrnoPower queryNocarEdrnoPowerById(String id) throws Exception {
		return nocarEdrnoPowerDao.queryNocarEdrnoPowerById(id);
	}

   
}
